#include "lws_utils.h"
#include "lws_triedict.h"

using namespace LWS;

int main(int argc, char* argv[])
{
    if(argc != 3)
    {
	printf("trainword <corpus_inputfile> <word_outputfile>\n");
	printf("Sample: trainword ./corpus/corpus.txt ./corpus/word.txt\n");

	return -1;
    }

    CTrainWord tw;

    tw.Train(argv[1]);
    tw.Output(argv[2]);

    return 0;
}
